home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 July
/
07_02.iso
/
software
/
xq-xsetup
/
files
/
setup.exe
/
{app}
/
plugins
/
XQ WinXP Find Files Options 1.xpl
< prev
next >
Wrap
Text File
|
2002-02-03
|
2KB
|
80 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="6"
"COUNT"="5"
"UIPATH"="Appearance\System\Find Files Dialog"
"NAME"="Find Files Dialog Options"
"VERSION"="1.00"
"LANGUAGE"="VBScript"
"OSVERSION"="000001"
"TEXT 1"="Activate "Search hidden files" option"
"TEXT 2"="Activate "Search system folders" option"
"TEXT 3"="Activate "Search backup sets" option"
"TEXT 4"="Activate "Search inside subfolders" option"
"TEXT 5"="Activate "Search is case sensitive" option"
"DESCRIPTION 1"="To change these advanced options inside the Find -> Files menu, you need to go through a lot of dialogs."
"DESCRIPTION 2"="This plug-in allows you to change the options directly."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
'Declaration of some constants
sP="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\"
sV1=sP & "SearchHidden"
sV2=sP & "SearchSystemDirs"
sV3=sP & "SearchSlowFiles"
sV4=sP & "IncludeSubFolders"
sV5=sP & "CaseSensitive"
'Called when the Plugin is started
SUB Plugin_Initialize
i=RegReadValue(sV1) 'DW
If i=1 then SetUIElement 1,true
i=RegReadValue(sV2) 'DW
If i=1 then SetUIElement 2,true
i=RegReadValue(sV3) 'DW
If i=1 then SetUIElement 3,true
i=RegReadValue(sV4) 'DW
If i=1 then SetUIElement 4,true
i=RegReadValue(sV5) 'DW
If i=1 then SetUIElement 5,true
END SUB
'Called when the Plugin should validate the Data the user has entered
SUB Plugin_CheckData(ElementIndex)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
Call WriteIt(1,sV1)
Call WriteIt(2,sV2)
Call WriteIt(3,sV3)
Call WriteIt(4,sV4)
Call WriteIt(5,sV5)
Call Logoff
END SUB
Sub WriteIt(ITM,PATH)
b=GetUIElement(ITM)
if b=true then
Call RegWriteValue(PATH,1,2)
else
Call RegWriteValue(PATH,0,2)
end if
End Sub
'Called when the Plugin is about to be removed from memory
SUB Plugin_Terminate
END SUB